<script setup lang="ts">
import { authUrl } from '@/utils/auth';

const handleAuth = () => {
  window.location.href = authUrl;
};
</script>

<template>
  <view class="page-container">
    <wd-img src="/static/logo.svg" :width="100" :height="100" class="mt-20vh" />
    <wd-button type="primary" @click="handleAuth" class="mt-5vh">企业微信授权登录</wd-button>
  </view>
</template>

<style lang="scss" scoped>
.page-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: calc(100vh - 44px);
  background-color: #f8f8f8;
}
</style>
